const crypto = require('crypto');

/**
 * @description: md5加密
 * @param {string} password
 * @return: {string}
 */
function md5password(password) {
  const md5 = crypto.createHash('md5');

  const md5pwd =md5.update(password).digest('hex')
  
  return md5pwd;
}

module.exports = md5password;